import axios from 'axios'
import { Toast } from 'vant'

const service = axios.create({
  baseURL: 'https://www.fastmock.site/mock/80a8fe97276b3fb127e0042282308b67/api'
})
service.interceptors.response.use(response => {
  return response
}, err => {
  Toast(err.message)
  Promise.reject(err)
})

export default (service)
